Skip to content

Conversation

@MartinWheelerMT
Copy link
Collaborator

@MartinWheelerMT MartinWheelerMT commented Mar 10, 2025

What

  • Add tests for existing functionality when mapping CodeableConcept for blood pressures.
  • Slight refactor on CodeableConceptCdMapper for readability and allow testing around existing bug when retrieving the original text value from the display extension.

Why

This method was untested and changes are required when handling non-SNOMEDCT codes.

Type of change

Please delete options that are not relevant.

  • Internal change (non-breaking change with no effect on the functionality affecting end users)

Checklist:

  • I have performed a self-review of my code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

MartinWheelerMT and others added 7 commits March 7, 2025 09:11
…export

* Add initial unit test for mapping allergy codable concepts.
* Refactor `findOriginalText`method to accept functional parameter so that different ways of retrieving the description display extension can be used.
* Refactor `findOriginalText`method to accept functional parameter so that different ways of retrieving the description display extension can be used.
…sion is not defined by the url as a description extension.
@MartinWheelerMT
Copy link
Collaborator Author

Pitest surviving mutant is due to a bug in the original code which cannot be tested as the code is never hit. This bug will be addressed in a future pull request

@MartinWheelerMT MartinWheelerMT marked this pull request as ready for review March 12, 2025 11:05
@MartinWheelerMT MartinWheelerMT enabled auto-merge (squash) March 12, 2025 14:24
@github-actions
Copy link

  • Surviving mutants in this change: 1
  • Killed mutants in this change: 3
class surviving killed
🧟uk.nhs.adaptors.gp2gp.ehr.mapper.CodeableConceptCdMapper 1 3

See https://pitest.org

@sonarqubecloud
Copy link

@MartinWheelerMT MartinWheelerMT merged commit 1ced970 into main Mar 12, 2025
10 checks passed
@MartinWheelerMT MartinWheelerMT deleted the niad-3304-adaptor-not-preserving-legacy-read-codes-on-export branch March 12, 2025 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants